package com.javatom.authority;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 〈功能概述〉<br>
 *
 * @className: RunApp
 * @package: com.javatom.authority
 * @author: TR
 * @date: 2020/6/21 18:32
 */
@Component
@Slf4j
public class RunApp implements ApplicationRunner {
    @Resource
    private PasswordEncoder passwordEncoder;
    public void run(ApplicationArguments args) throws Exception {
     log.error("============== {}", passwordEncoder.encode("javatom"));
    }
}